package cn.itsource.mapper;
import cn.itsource.domain.BlogArticle;
import cn.itsource.domain.BlogArticleType;
import cn.itsource.domain.html.NumberOfArticlesByCategory;
import cn.itsource.query.BlogArticleTypeQuery;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 文章顶级接口类(继承tk的Mapper接口，里面内置了单表的crud的方法)
 */
public interface ArticleTypeMapper extends Mapper<BlogArticleType> {

    List<BlogArticleType> pageList(BlogArticleTypeQuery typeQuery);
//    获取文章列表数据
    List<NumberOfArticlesByCategory> selectArticleTypeStatistics();
}
